//
//  LoadingController.m
//  Bible Assistant
//
//  Created by company_2 on 2017/8/3.
//  Copyright © 2017年 nixWork. All rights reserved.
//

#import "LoadingController.h"
// 颜色
#define NTColor(r, g, b) [UIColor colorWithRed:(r)/255.0 green:(g)/255.0 blue:(b)/255.0 alpha:1.0]



@interface LoadingController ()

@end

@implementation LoadingController
{
    UIActivityIndicatorView * _acView;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    
    CGFloat w = 50;
    CGFloat x = (self.view.frame.size.width-w)/2;
    CGFloat y = self.view.frame.size.height-w-50;
    
    UIImageView * imgView = [[UIImageView alloc]initWithFrame:self.view.bounds];
    [self.view addSubview:imgView];
    imgView.image = [UIImage imageNamed:@"BE 001"];
     
    
    UILabel * titleLabel = [[UILabel alloc]initWithFrame:CGRectMake(0, y-50, self.view.frame.size.width, 50)];
    titleLabel.font = [UIFont systemFontOfSize:25];
    titleLabel.textColor = [UIColor whiteColor];
    [self.view addSubview:titleLabel];
//    titleLabel.text = @"LOADING...";
    titleLabel.textAlignment = NSTextAlignmentCenter;
    [self.view addSubview:titleLabel];
    
    

    _acView = [[UIActivityIndicatorView alloc]initWithFrame:CGRectMake(x, y, w, w)];
    [self.view addSubview:_acView];
    [_acView startAnimating];

    
    
    

}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
